glnx porting: Drop use of gs_file_openat_noatime
authorColin Walters <walters@verbum.org>
Fri, 3 Jun 2016 14:22:05 +0000 (10:22 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 9 Jun 2016 14:39:09 +0000 (14:39 +0000)
As noted previously the "noatime" thing is mostly obsoleted by
relatime.

Closes: #319
Approved by: jlebon

src/libostree/ostree-repo.c

index 22b874b31780417b671489ee4527bb35dbd7625c..38dac761d7f30a062cdfff996c19735f07506925 100644 (file)
@@ -3091,8 +3091,13 @@ _ostree_repo_read_bare_fd (OstreeRepo           *self,
 
   _ostree_loose_path (loose_path_buf, checksum, OSTREE_OBJECT_TYPE_FILE, self->mode);
   
-  return gs_file_openat_noatime (self->objects_dir_fd, loose_path_buf, out_fd,
-                               cancellable, error);
+  *out_fd = openat (self->objects_dir_fd, loose_path_buf, O_RDONLY | O_CLOEXEC);
+  if (*out_fd < 0)
+    {
+      glnx_set_error_from_errno (error);
+      return FALSE;
+    }
+  return TRUE;
 }
 
 /**